public class method2 {
    public static void main(String[] args) {
        double s1 = gs(5.1,7.1);
        double s2 = gs(7.1,5.1);
        if (s1>s2){
            System.out.println("第一个长方形大");
        }else if (s1==s2){
            System.out.println("两者相等");
        }else {
            System.out.println("第二个长方形大");
        }
    }
    public static double gs (double a,double b){
        double s = a*b;
        return s;
    }

}
